import request from '@/utils/request'
import {ParamsType} from './types'

/**
 * 获取人员信息列表
 * @param data 
 * @returns 
 */
export function getPersonList(data: ParamsType) {
  return request({
    url: 'api/v1/common/persons',
    method: 'get',
    params: data
  })
}

/**
 * new_获取人员信息列表
 * @param data
 * @returns
 */
export function new_getPersonList(data: ParamsType) {
  return request({
    url: 'api/v1/manager/person/persons',
    method: 'get',
    params: data
  })
}

/**
 * 根据id获取详情
 * @param corpId 
 * @returns 
 */
export function getPersonInfoById(id : number){
  return request({
    url: 'api/v1/common/person/' + id,
    method: 'get',
  })
}
